<?php

namespace models;

use Unirest\Request;

class Market {
	// private static $cookie = null;

	/** 获取所有菜场 **/
	public static function get() {
		$response = Request::get(C_API . '/wx_FoodmarketListJson.action');
		// longitude, latitude, marketName, address
		if($response->code == 200) {
			return $response->body;
		}
    }
}